package com.wenjiang.controller;


import com.wenjiang.common.annotation.OperatorLog;
import com.wenjiang.entity.MallSecKillGood;
import com.wenjiang.service.MallSecKillGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/mallSecKill")
@RestController
public class MallSecKillGoodController {

    @Autowired
    MallSecKillGoodService mallSecKillGoodService;

    @RequestMapping("/add")
    @OperatorLog
    public  Object addSecKill(@RequestBody MallSecKillGood mallSecKillGood){
        return  mallSecKillGoodService.addSecKill(mallSecKillGood);
    }


}
